package com.booksystem.campuslibrarymanagementsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.booksystem.campuslibrarymanagementsystem.commen.result.adminresult.SendEmailManagementR.GetEmailR;
import com.booksystem.campuslibrarymanagementsystem.entity.AccountTable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountTableService extends IService<AccountTable> {
    AccountTable queryByAccount(String account);
    List<AccountTable> queryByState(String state);
    boolean upDataPswAndSalt(String account,String password,String salt);
    boolean upDataPswAndSaltAndState(String account,String password,String salt,String state);
    boolean upDataState(String account,String state);
    boolean upDataIdentity(String account,String identity);
    List<AccountTable> selectListAccount(String account,String name,String identity, String state);
    boolean upDataName(String account,String name);
    List<AccountTable> queryByEmail(String email);
    boolean upDataEmailAndName(String account,String email,String name);
    List<GetEmailR> GetEmails();
    String getAccountId(@Param("name") String name);
    boolean updateAccount(AccountTable account);
    boolean updateAccountemail(AccountTable account);
}
